(function () {
  var _url = window.location.host + '/business/pages/'
  var headerMain = '<header>'
    + '<h1>嘉兴产业经济运行平台</h1>'
    + '<ul>'
    + '<li v-for="(item,index) in navList" :class="active_model==item.NAME?\'active\':\'\'" @click="header_jump(item.NAME,active_model)">{{item.NAME}}</li>'
    + '</ul>'
    + '</header>'
  var headerArea = Vue.extend({
    template: headerMain,
    props: {
      active_model: [String, Number],
      //			platform_name:String,
      require: true,
    },
    data: function () {
      return {
        navList: [
          { NAME: '企业全景' },
          { NAME: '优质企业' },
          { NAME: '潜力企业' },
          { NAME: '预警企业' },
          { NAME: '区级贡献500强' },
          { NAME: '产业分类' }
        ]
        // 				navList:JSON.parse(localStorage.getItem("zsPlatformModule")),  //模块权限
        // //				url:["sectionModel.html",""]
        // 				logo_src:''
      }
    },
    created: function () {

      // this.logo_src="http://"+window.location.host+"/business/images/logo.png";
    },
    methods: {
      header_jump: function (_url, moduleName) {
        alert(moduleName)

      }
    }
  })
  window.headerMain = headerArea
})()